/*
 * Commandline.h
 *
 *  Created on: May 11, 2012
 *      Author: pleun
 */

#ifndef COMMANDLINE_H_
#define COMMANDLINE_H_
#include <vector>
#include <string>
#include <iostream>

using namespace std;

class Commandline {
private:
	vector<string>* words;
	bool containsAppend;
	bool containsOutput;
	bool containsInput;

public:
	Commandline();
	virtual ~Commandline();

	void addNewCommandText(string commandText);
	vector<string>* getWords();
	bool GetContainsAppend();
	bool GetContainsOutput();
	bool GetContainsInput();

	void SetContainsAppend();
	void SetContainsOutput();
	void SetContainsInput();

	string FindPathToOutput();
	string FindPathToInput();
	string FindPathToAppend();

	int getSizeCommandsWithoutFileDirection();

};

#endif /* COMMANDLINE_H_ */
